package com.wanxi.spring.cloud.team.mapper;

import com.wanxi.spring.cloud.team.model.Team;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 蒋帆
 * @since 2020-12-21
 */
public interface TeamMapper {

    List<Team> getTeamList(Map map);

    Team getTeamByName(String name);

    long getTeamCount(Map map);

    int deleteTeam(Integer id);

    int updateTeam(Team team);

    Team selectTeamById(Integer teamId);

    int setCrew(Integer teamId);

    Team teamLeaderJudge(Integer id);

    int clearTeamLeader(Integer id);

    int addTeam(Team team);
}
